/**
 * Created by WYH on 17/4/20.
 */
angular.module('tribalc').service(
    'RentBuckleModel',
    [function () {

        var RentBuckle = function (object) {

            var self = this;

            init();

            function init() {
                if (object) {
                    self.userName = object.userName;
                    self.bankCardNum = object.bankCardNum;
                    self.bankName = object.bankName;
                    self.phone = object.phone;
                    self.idNo = object.idNo;
                    self.bankCode = object.bankCode;
                }
            }
        };


        RentBuckle.prototype.getObject = function () {
            return {
                userName: this.userName,
                bankCardNum: this.bankCardNum,
                bankName: this.bankName,
                phone: this.phone,
                idNo: this.idNo,
                bankCode:this.bankCode
            }
        };

        return RentBuckle;

    }]
);